CodeChroma Home

Category

Accessibility & Colour Systems

16 articles

Steeping the Spinner: A Tea-Rack Colour Ramp for Loading States

Steeping the Spinner: A Tea-Rack Colour Ramp for Loading States

A builder’s brew already comes with a ready-made scale from pale straw to over-stewed mahogany. Here’s how to sample it, name it, test it in light and dark mode, and ship a small progress component that feels properly British without sacrificing contrast.

Flicking the Switch: A Tabletop-Football Palette That Survives Tiny Screens

Flicking the Switch: A Tabletop-Football Palette That Survives Tiny Screens

Vintage tabletop football gives us claret, amber, sky blue and referee black — a joyful palette that can go badly wrong on a 12px badge. Here is how to turn those strips into tokens, check contrast for tiny UI, and build a CSS Grid pitch with a procedural match-day scene that stays readable.

Galvanised, Gaffer and Grit: A VS Code Theme Sampled from the British Workshop

Galvanised, Gaffer and Grit: A VS Code Theme Sampled from the British Workshop

A practical walkthrough for turning galvanised steel, creosoted timber, terracotta pots, masking tape and safety orange into a VS Code theme that stays readable through long coding sessions. We cover real-world sampling, OKLCH conversion, token mapping and contrast testing for light and dark variants.

Kerbside Signals: A Dark-Mode Token Set Built from UK Street Colours

Kerbside Signals: A Dark-Mode Token Set Built from UK Street Colours

UK street furniture already has a working colour language: postbox red, Belisha amber, motorway blue and the grey of municipal kit. This walkthrough turns those cues into semantic CSS tokens, checks them against WCAG contrast targets and adjusts the ramp for dark mode without losing the civic signal.

Forecast-Driven Hues: Wiring Live UK Weather into an OKLCH Sketch

Forecast-Driven Hues: Wiring Live UK Weather into an OKLCH Sketch

A practical walkthrough for pulling UK forecast data into a small JavaScript or p5.js sketch, then mapping rain, temperature and wind into a restrained OKLCH palette. Includes API-key handling, sensible caching, and fallbacks for when the feed — like the weather — refuses to cooperate.

When the Sky Clocks Off Early: A Seasonal Palette for UK Websites

When the Sky Clocks Off Early: A Seasonal Palette for UK Websites

Fixed light and dark modes treat the British day like a switch, but our winters fade by mid-afternoon and our summers stretch past nine. Here is a small, accessible system for shifting palette temperature and contrast with the sun — without turning your site into a gimmick.

Beyond the Muted Middle: A Bolder Colour System That Still Behaves

Beyond the Muted Middle: A Bolder Colour System That Still Behaves

Too many UK creative tools look like they were designed in the same grey waiting room. Here is a practical argument for colour with a point of view — plus a token structure, testing routine and checklist for teams that want to stand out without breaking usability.